package com.oddpointcc.szpt.accounting.component;

import java.util.LinkedList;
import java.util.List;
import java.util.Set;


/**
 * 面包屑节点
 * 
 * @author yzx
 *
 */
public class BreadCrumbLink {

	private String label;
	private String parentLabel;
	private String family;
	private Set<String> urlPatterns;
	private BreadCrumbLink parent;
	private List<BreadCrumbLink> children;

	public BreadCrumbLink() {
		this.children = new LinkedList<>();
	}

	public BreadCrumbLink(String label, String parentLabel, String family, Set<String> urlPatterns) {
		super();
		this.label = label;
		this.parentLabel = parentLabel;
		this.family = family;
		this.urlPatterns = urlPatterns;
		this.children = new LinkedList<>();
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getParentLabel() {
		return parentLabel;
	}

	public void setParentLabel(String parentLabel) {
		this.parentLabel = parentLabel;
	}

	public String getFamily() {
		return family;
	}

	public void setFamily(String family) {
		this.family = family;
	}

	public Set<String> getUrlPatterns() {
		return urlPatterns;
	}

	public void setUrlPatterns(Set<String> urlPatterns) {
		this.urlPatterns = urlPatterns;
	}

	public BreadCrumbLink getParent() {
		return parent;
	}

	public void setParent(BreadCrumbLink parent) {
		this.parent = parent;
	}

	public List<BreadCrumbLink> getChildren() {
		return children;
	}

	public void setChildren(List<BreadCrumbLink> children) {
		this.children = children;
	}

	public void addChildren(BreadCrumbLink breadCrumbLink) {
		this.children.add(breadCrumbLink);
	}

}
